package com.lening.provider.service.impl.PropertyNotice;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseServiceImpl;
import com.lening.provider.dao.PropertyNotice.PropertyNotificationMainTableDAO;
import com.lening.provider.dto.PropertyNotice.PropertyNotificationMainTableDTO;
import com.lening.provider.po.PropertyNotice.PropertyNotificationMainTablePO;
import com.lening.provider.service.PropertyNotice.PropertyNotificationMainTableService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 刘政华
 * @datetime 2024/6/5 14:06
 * @description 类对象
 */
@Slf4j
@Service
public class PropertyNotificationMainTableServiceImpl extends BaseServiceImpl<PropertyNotificationMainTableDAO, PropertyNotificationMainTablePO, PropertyNotificationMainTableDTO> implements PropertyNotificationMainTableService {

    @Resource
    private PropertyNotificationMainTableDAO propertyNotificationMainTableDAO;

    @Override
    public Page<?> page(PropertyNotificationMainTableDTO propertyNotificationMainTableDTO) {
        return this.baseMapper.getList(propertyNotificationMainTableDTO);
    }

    @Override
    public Page<PropertyNotificationMainTableDTO> getlistTwo(PropertyNotificationMainTableDTO propertyNotificationMainTableDTO) {
        return this.propertyNotificationMainTableDAO.getListTwo(propertyNotificationMainTableDTO);
    }

    @Override
    public PropertyNotificationMainTablePO getById(Long id) {
        return this.propertyNotificationMainTableDAO.getById(id);
    }
}
